<?php /** Partial helper table generator */ ?>
<table>
<?php if(!empty($this->headers)) : ?>
	<tr>
	<?php foreach($this->headers as $header) { ?>
		<th><?php echo $this->escape($header) ?></th>
	<?php } ?>
	</tr>
<?php endif; ?>

<?php if(!empty($this->rows)) : ?>
	<?php foreach($this->rows as $row) { ?>
		<tr>
			<?php if(is_array($row)) : ?>
				<?php foreach($row as $val) { ?>
					<td><?php echo $val ?></td>
				<?php } ?>
			<?php else : ?>
				<td><?php echo $row ?>
			<?php endif; ?>
		</tr>
	<?php } ?>
<?php endif; ?>
</table>